local table_name = "welfaredaily"
local old_table = IMPORT_D:get_table(table_name)
if not old_table then
    return
end

local BigNum = require "BigNum"

local new_table = table.copy(old_table)
for _, tbl in pairs(new_table) do
    if type(tbl.trumpWelfare) == "string" then
        local trumpWelfare = {}
        for _, val in ipairs(string.split(tbl.trumpWelfare, ";")) do
            table.insert(trumpWelfare, tonumber(val))
        end
        tbl.trumpWelfare = trumpWelfare
    end

    if type(tbl.trumpWelfareWeight) == "string" then
        local trumpWelfareWeight = {}
        for _, val in ipairs(string.split(tbl.trumpWelfareWeight, ";")) do
            table.insert(trumpWelfareWeight, tonumber(val))
        end
        tbl.trumpWelfareWeight = trumpWelfareWeight
    end

    tbl.offLineWelfare = BigNum.new(tbl.offLineWelfare)
end

IMPORT_D:set(table_name, new_table)
